package org.jc.reflect.model;

public class JField {

	private String name;
	private Class<?> type;

	@SuppressWarnings("unused")
	private JField() {
	}

	public JField(String name, Class<?> type) {
		super();
		this.name = name;
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Class<?> gettype() {
		return type;
	}

	public void settypes(Class<?> type) {
		this.type = type;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("{");
		sb.append("\"name\":");
		sb.append("\"");
		sb.append(name);
		sb.append("\"");
		sb.append(", \"type\":");
		sb.append("\"");
		sb.append(type.toString());
		sb.append("\"");
		sb.append("}");
		return sb.toString();
	}

}
